
import {
    request
} from "./request";
import qs from "qs";



// 购买储值金
export function userPay(obj) {
    return request({
        url: "stored/userPay",
        method: "post",
        data: qs.stringify(obj)
    });
}

// ===============



// 获取规则
export function listRules(obj) {
    return request({
        url: "stored/listRules",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取首页基本信息
export function listMain(obj) {
    return request({
        url: "stored/listMain",
        method: "post",
        data: qs.stringify(obj)
    });
}

// 提现
export function updateDistributionRecord(obj) {
    return request({
        url: "fenxiao/updateDistributionRecord",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  储值记录
export function listDetail(obj) {
    return request({
        url: "stored/listDetail",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  返利记录
export function listShareDetail(obj) {
    return request({
        url: "stored/listShareDetail",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  消费记录
export function listPayDetail(obj) {
    return request({
        url: "stored/listPayDetail",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  获取活动页数据
export function listActMain(obj) {
    return request({
        url: "stored/listActMain",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 完成今日数据
export function addAct(obj) {
    return request({
        url: "stored/addAct",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取优惠券
export function addCoupon(obj) {
    return request({
        url: "stored/addCoupon",
        method: "post",
        data: qs.stringify(obj)
    });
}